package com.ym521.ymrouter.demo.test

import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import com.ym521.ymrouter.demo.R
import com.ym521.ymrouter.facade.annotation.Autowired
import com.ym521.ymrouter.facade.annotation.YmRoute
import com.ym521.ymrouter.launcher.YmRouter

@YmRoute(path = "/test/main2")
class MainActivity2 : AppCompatActivity() {

    @Autowired
    @JvmField
    var data: String? = null

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        YmRouter.getInstance().inject(this)
        setContentView(R.layout.activity_main2)
    }
}